//
//  HECartItemCell.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/10/26.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HEShopCarModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, HECartTotalChangeType) {
    HECartTotalChangeTypeAdd,
    HECartTotalChangeTypeCut
};

@class HECartItemCell;
@protocol HECartItemCellDelegate <NSObject>

- (void)goodsCellSelect:(HECartItemCell *)cell withModel:(HEShopCarModel *)model;

- (void)updateGoodsQuantity:(HECartItemCell *)cell withNum:(NSInteger)total changheType:(HECartTotalChangeType)type;

@end

@interface HECartItemCell : UITableViewCell

@property (nonatomic, strong) HEShopCarModel *model;

@property (nonatomic, weak) id <HECartItemCellDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
